﻿using PersistentObject.Common.Attributes;
using PersistentObject.SqlServer2012;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PersistentObject.StudentTest.Entities
{
    /// <summary>
    /// Represent a student
    /// </summary>
    public class Student : IdentityKeyEntity
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string StudentId { get; set; }
        public DateTime Birthday { get; set; }
        [ForeignKey]
        public Gender Gender { get; set; }
        public string Email { get; set; }
        public string DayPhone { get; set; }
        public string NightPhone { get; set; }
        public string Address { get; set; }

        [Convertor(typeof(PersistentObject.Common.DataConvertors.ImageConvertor))]
        public Image Picture { get; set; }
    }
}
